package com.thoughtworks.jspecsupport;

import javax.swing.*;
import java.awt.*;

public class JSPecRunPanel extends JComponent {

    JTextArea testResultTestArea;

    public JSPecRunPanel() {
        setLayout(new BorderLayout());
        testResultTestArea = new JTextArea();
        add(testResultTestArea);
        setVisible(true);
    }

    public void updateTestResult(String testResult) {
        testResultTestArea.setText(testResult);
    }
}
